const mongoose = require('mongoose')
const Schema = mongoose.Schema
const theatersSchema = new Schema({
    title:String,
    href:String,
    image:String,
    rating:String,
    director:String,
    doubanId: {
        type: Number,
        unique: true
      },
    createTime: {
        type: Date,
        default: Date.now()
      }
})

const theaters = mongoose.model('theaters',theatersSchema)

module.exports = theaters